import { Base } from '../../utils/base.js';
class Company extends Base {
    constructor() {
        super();
    }
	getCompanyLists(callback, params) {
	    var that = this;
	    var param = {
	        url: 'api/companyprofile/lists',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
    getCompanyRegisterInit(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/getCompanyregisterinit',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    getCompanyDetailData(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/getCompanydetail',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    getCompanyUserDetailData(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/getCompanyuserdetail',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    gzCompany(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/gzCompany',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    Updatecompany(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/updateCompany',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    myGzCompany(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/myGzCompany',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    uploadimg(callback, params) {
        var that = this;
        console.log(params);
        var param = {
            url: 'addons/zpwxsys/v1.Company/uploadImg',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.requestuploadimg(param);
    }
}
export { Company };
